﻿{extend name="public:base" /}

{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501010115_0" cpt_id="text">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">名称</label>
                                <div class="col-sm-3">
                                    <input type="text" name="name" class="form-control" placeholder="请输入名称">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501230154_0" cpt_id="password">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">密码框</label>
                                <div class="col-sm-3">
                                    <input type="password" name="name1631501226078" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501230155_1" cpt_id="textarea">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">textarea</label>
                                <div class="col-sm-3">
                                    <textarea class="form-control" name="name1631501227087" rows="8"></textarea>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501010117_3" cpt_id="uploadImage">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">封面图</label>
                                <div class="col-sm-3">
                                    <input type="file" id="img_file" style="display: none" name="img">
                                    <input type="hidden" name="img" id="img" value="">
                                    <img class="upload-file" onclick="uploadImg('img_file', 'img', 'upload_img')" id="upload_img" src="/static/admin/img/uploadBtn.png">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501010119_4" cpt_id="uploadImages">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">轮播图</label>
                                <div class="col-sm-3">
                                    <input type="file" id="imgs_file" multiple="" style="display: none" name="imgs">
                                    <input type="hidden" name="imgs" id="imgs" value="">
                                    <div id="imgs_div">
                                        <!-- 已上传图片盒子 -->
                                    </div>
                                    <img class="upload-file" onclick="uploadImgs('imgs_file', 'imgs', 'imgs_div')" src="/static/admin/img/uploadBtn.png" id="upload_imgs">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501276099_0" cpt_id="date">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">日期选择</label>
                                <div class="col-sm-3">
                                    <input type="text" name="name1631501274273" class="form-control" id="did_1631501276099_0d_rang">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501276100_1" cpt_id="dateRange">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">日期范围</label>
                                <div class="col-sm-3">
                                    <input type="text" autocomplete="off" class="form-control" name="name1631501275189" id="did_1631501276100_1d_rang">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501010122_7" cpt_id="switch">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">上架</label>
                                <div class="col-sm-3">
                                    <input type="checkbox" name="is_true" class="js-switch" checked="">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501390747_0" cpt_id="select">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">下拉选项</label>
                                <div class="col-sm-3">
                                    <select class="form-control" name="name1631501390192">
                                        <option value="0" selected="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501335747_0" cpt_id="radio">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">单选择框</label>
                                <div class="col-sm-3">
                                    <div class="i-checks">
                                        <label> <input type="radio" value="0" name="name1631501334143"> 男 </label>
                                    </div>
                                    <div class="i-checks">
                                        <label><input type="radio" checked="" value="1" name="name1631501334143"> 女
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501335747_1" cpt_id="checkbox">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">多选择框</label>
                                <div class="col-sm-3">
                                    <div class="i-checks">
                                        <label><input type="checkbox" value="1" name="name1631501334767"> 选项一 </label>
                                    </div>
                                    <div class="i-checks">
                                        <label> <input type="checkbox" value="2" name="name1631501334767"> 选项二 </label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501010124_11" cpt_id="editor">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label layui-form-label">富文本</label>
                                <div class="col-lg-6">
                                    <div class="ibox" id="did_1631501010124_11_editor">
                                        <textarea id="editor_id"></textarea>
                                        <textarea name="content" data-editor="kindEditor" style="display: none"></textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="box-item layui-form-item adminj-sort-item" id="did_1631501010143_12" cpt_id="submitData">
                            <div class="form-group row">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button type="button" class="btn btn-w-m btn-default back-page" name="name1631500724691">
                                        返回
                                    </button>
                                    <button type="button" class="btn btn-w-m btn-primary ajax-post" name="name1631500724691">
                                        提交
                                    </button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name='js'}
<script type="text/javascript" src="__PLUG__/kindeditor/kindeditor-all.js"></script>
<script>
    // 实例化编辑器
    initKindEditor('editor_id');

    // 切换器
    var elem = document.querySelector('.js-switch');
    if (elem) var switchery = new Switchery(elem, {color: '#1AB394'});

</script>
{/block}
